<form class="form-signin" role="form">
  <h2 class="form-signin-heading" style="text-align: center;">登录</h2>
  <input type="text" class="form-control" placeholder="telephone"  onkeyup="(this.v=function(){this.value=this.value.replace(/[^0-9-]+/,'');}).call(this)" onblur="this.v();" ng-model="username" maxlength="11" minlength="11" required autofocus/>
  <input type="password" class="form-control" placeholder="Password"  ng-model="password" required/>
  <button class="btn btn-lg btn-primary btn-block" ng-click="login()">Sign in</button>
</form>
